package wyu.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("category-bar-provider")
public interface CategoryBarService {
    @GetMapping("/category_bar/getCategory")
    int getCategory(@RequestParam("barId")int barId);
    @PostMapping("/category_bar/addRelevancy")
    boolean addRelevancy(@RequestParam("barId")int barId,
                                @RequestParam("categoryId")int categoryId);
}
